cmake_minimum_required(VERSION 2.8)
project(boosttest CXX)
find_package(Boost REQUIRED COMPONENTS serialization)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
add_executable(main5 test5_archieve.cc)
# 链接Boost库
target_link_libraries(main5 Boost::serialization)
 
# 包含Boost头文件目录
include_directories(${Boost_INCLUDE_DIRS})